package com.yang.service;

import com.yang.dao.UserDao;

public class UserServiceImpl implements UserService{
    private UserDao userDao;//组合

    //利用set进行动态实现值的注入
    public void setUserDao(UserDao userDao){
        this.userDao=userDao;
    }
    public void getUser() {
        userDao.getUser();
    }
}
